package cn.tedu.boyou.acticle.service.impl;

import cn.tedu.boyou.acticle.domain.Traffic;
import cn.tedu.boyou.acticle.mapper.TrafficMapper;
import cn.tedu.boyou.acticle.service.ITrafficService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class TrafficServiceImpl implements ITrafficService{

    @Autowired
    private TrafficMapper saleMapper;

    @Override
    public void insert(Traffic sale) {
        saleMapper.insert(sale);
    }

    @Override
    public List<Traffic> listAll() {
        return saleMapper.selectAll();
    }
}
